const { merge } = require('webpack-merge')
const webpackConfigBase = require('./webpack.base.config')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin // 可视化分析包大小

const webpackConfigDev = {
  mode: 'development',
  devtool: 'cheap-module-eval-source-map',
  plugins: [
    new BundleAnalyzerPlugin({
      analyzerPort: 8017
    })
  ]
}
module.exports = merge(webpackConfigBase, webpackConfigDev)
